package com.javajun.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.javajun.entity.Nav;
import com.javajun.service.NavService;

@Controller
public class IndexController {
    
    @Autowired
    private NavService navService;

    @RequestMapping(value="/index")
    private void index() {
        
    }
    
    @RequestMapping(value="/login")
    private void login() {
        
    }
    
    @RequestMapping(value="/home")
    private void home() {
        
    }
    
    @RequestMapping(value="/getNav")
    @ResponseBody
    private Object getNav() {
        List<Nav> nav = navService.findAll();
        return nav;
    }
}
